package com.ganyu.domain.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * DATA: 2022/9/16
 * Author: 晨夕
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentListVo {
    private Long id;
    //文章id
    private Long articleId;
    //根评论id
    private Long rootId;
    //评论内容
    private String content;
    //所回复的目标评论的userid
    private Long toCommentUserId;
    //所回复的目标评论的username
    private String toCommentUserName;
    //回复目标评论id
    private Long toCommentId;
    //评论创建的id
    private Long createBy;
    //根评论的姓名
    private String username;
    //创建时间
    private Date createTime;
    //子评论
    private List<CommentListVo> children;
    //头像
    private String avatar;
}
